// vue-zhu/src/router/index.js
import { createRouter, createWebHistory } from 'vue-router';

const routes = [
  { // 默认进去展示的界面效果: http://localhost:5173/
    path: '/',
    name: 'Login',
    component: () => import('@/login/login.vue') // 确保路径和文件存在
  },
  { // index的界面效果: http://localhost:5173/index
    path: '/index',
    name: 'Index',
    component: () => import('@/indexpage/index.vue')
  },
];

const router = createRouter({
  history: createWebHistory(),
  routes
});

export default router;